<?php

	$TEMP->set_file(array('handle' => DIR_IFRAME_VIEW . 'newSemesterSY.html'));
	
	include DIR_LIBRARY . "Captcha.php";
	
	$_SESSION['captcha'] = simple_php_captcha();
	
	$catcha = '<img src="' . $_SESSION['captcha']['image_src'] . '" alt="CAPTCHA Code" class="img-catcha" width="140" height="50">';
	
	if ( $yearSummer == 'Y' ) {
		$sy_year 	= 'Summer :: SY ' . $yearTo;
		$next_sem 	= '1st Semester';
		$semsem_sem= 0;
	}
	elseif( $yearFrom == $yearTo ) {
		$sy_year = '1st Semester :: SY ' . $yearTo;
		$next_sem 	= '2nd Semester';
		$sem_sem 	= 1;
	}
	else {
		$sy_year = '2nd Semester :: SY ' . $yearFrom . '-' . $yearTo;
		$nextSummerSY = $DSC->getNextSummerSY();
		$sem_sem 	  = 2;
		$next_sem 	  = ( $nextSummerSY > 0 ) ? 'Summer :: SY ' . $yearTo : '1st Semester';
	}
	
	$TEMP->set_var(array('sy_year'		=> $sy_year,
						 'next_sem'		=> $next_sem,
						 'sem_sem'		=> $sem_sem,
						 'nssy'			=> $nextSummerSY,
						 'catcha'		=> $catcha,
						 'code'			=> $_SESSION['captcha']['code'],
						 'if_display'	=> $if_display
						));

?>